Essential Windows Phone 7.5: Application Development with Silverlight (Gal Zentner's Library) by Shawn Wildermuth

Essential Windows Phone 7.5: Application Development with Silverlight (Gal Zentner's Library) by Shawn Wildermuth

Author:Shawn Wildermuth
Language: eng
Format: epub
Publisher: Addison-Wesley
Published: 2012-06-20T16:00:00+00:00


Accessing Existing Notifications

Once you’ve added notifications to the phone, you may want to support managing those notifications. The ScheduledActionService class has several members that can help you manage your notifications.

• Add: This adds a new notification to the phone.

• Find: This locates a notification by name.

• GetActions<T>: This returns a read-only collection of notifications based on the type (alarm or reminder).

• Remove: This removes a specifically named notification from the phone.

• Replace: This replaces a named notification with a new notification (of the same name).

For example, to get a list of reminders and bind them to a list box, you can simply use the GetActions method:

// Returns an IEnumerable<Reminder> object

var reminders = ScheduledActionService.GetActions<Reminder>();



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.